import request from '@/utils/request'

// 添加瑞智策略公开的配置
export const SaveStrategyConfig = (data) => {
  return request({
    url: '/v1/ruizhiConfig/strategyConfig/',
    method: 'post',
    data,
  })
}

// 获取瑞智策略公开的配置
export const GetStrategyConfig = (t) => {
  return request({
    url: '/v1/ruizhiConfig/strategyConfig/',
    method: 'get',
    params: { t },
  })
}

// 添加瑞智投资计划公开的配置
export const SaveInvestmentConfig = (data) => {
  return request({
    url: '/v1/ruizhiConfig/investmentConfig/',
    method: 'post',
    data,
  })
}

// 获取瑞智投资计划公开的配置
export const GetInvestmentConfig = (t) => {
  return request({
    url: '/v1/ruizhiConfig/investmentConfig/',
    method: 'get',
    params: { t },
  })
}
